package com.example.back.model;

/**
 * 交互数据类
 * @param <T>
 */
public class Result<T> {
    private String msg;
    private int code;
    private T detail;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public T getDetail() {
        return detail;
    }

    public void setDetail(T detail) {
        this.detail = detail;
    }

    @Override
    public String toString() {
        return "Result{" +
                "msg='" + msg + '\''  +
                ",code='" + code + '\'' +
                ",detail=" + detail + '\'' +
                '}';
    }
}
